<#include "../common/_layout.html" /> <@layout>
<div id="login-box" class="row">
	<div class="span5 offset3">
		<form class="form-horizontal" action="login" method="post">
			<input type="hidden" name="redirectURI" value="${redirectURI!}">
			<div class="control-group">
				<div class="controls">
					<span class="help-block">Don't have an account? <a
						href="signup">Sign up here</a>
					</span>
				</div>
			</div>
			<div class="control-group
				<#if nameMsg??>error</#if>">
				<label class="control-label" for="inputAccount">Account</label>
					<div class="controls">
						<div class="input-prepend">
							<span class="add-on"><i class="icon-user"></i></span>
							<input type="text" id="inputAccount" name="name" value="${name!}" placeholder="User name" required>
						</div>
						<p class="text-error">${nameMsg!}</p>
					</div>
				</div>
			<div class="control-group">
				<label class="control-label" for="inputPassword">
					Password
				</label>
				<div class="controls">
					<div class="input-prepend">
						<span class="add-on"><i class="icon-lock"></i>
						</span>
						<input type="password" id="inputPassword" name="password"
							placeholder="Password" required>
					</div>
				</div>
			</div>
			<div class="control-group">
				<div class="controls">
					<span class="help-block"><a href="#">Forgot Password</a>
					</span>
				</div>
			</div>
			<div class="control-group">
				<div class="controls">
					<input type="submit" class="btn btn-success" value="Login">
					<label class="checkbox inline">
						<input type="checkbox" name="rememberPassword" value="1"
							checked="checked">
						Remember me
					</label>
				</div>
			</div>
		</form>
	</div>
</div>
</@layout>
